#include "caixaregistradoralucaseduardo.h"
#include "gllib/Objects.h"
#include <GL/glu.h>

void CaixaRegistradoraLucaseduardo::draw() {





    glScalef(0.5,0.5,0.5);

    glColor3f(0,0,0);

    glScalef(1.0,5.0,1.0);

    glTranslatef(-0.2,0.09,0.15);
    //haste da plaquinha retangular preta
    gllibCube(0.06);


    glTranslatef(0.0,0.018,0.0);
    glScalef(5.0,0.5,1.0);
    //plaquinha retangular preta
    gllibCube(0.06);
    glScalef(1/5.0,1/0.5,1.0);

    glTranslatef(0.0,-0.018,0.0);

    glTranslatef(0.2,-0.09,-0.15);

    glScalef(1.0,1/5.0,1.0);


    glColor3f(0.5, 0.0, 0.0);
    glScalef(1.0,0.35,1.0);
    //base vermelha retangular
    gllibCube(0.8);

    glScalef(0.7,0.7,0.7);
    glTranslatef(0.0,-0.1,-0.35);
    //"gaveta" cilindrica da base
    gllibCylinder(0.5,0.6,8);
    glTranslatef(0.0,0.1,0.35);


    glScalef(1.0,3.0,1.0);
    glRotatef(-20,1.0,0.0,0.0);

    glScalef(1.1,0.4,1.1);
    glTranslatef(0.0,0.5,0.0);

    glColor3f(0.5,0.5,0.5);
    //parte cinza inclinada em cima da base
    gllibCube(0.8);


    glColor3f(0.1,0.1,0.1);
    glTranslatef(0.2,0.4,0.25);
    glScalef(1.0,1.0,0.8);
    //"screen" preto em cima da parte inclinada
    gllibCube(0.3);


    glScalef(2.0,1.0,1.0);
    glTranslatef(-0.1,0.0,-0.6);
    //"teclado" preto em cima da parte inclinada
    gllibCube(0.3);


    glRotatef(90,1.0,0.0,0.0);




    glTranslatef(-0.1,0.0,-0.6);
    glScalef(0.2,0.2,0.4);


    glColor3f(1.0,1.0,0.3);

    glRotatef(90,0.0,0.0,1.0);

    glTranslatef(2.0,0.0,1.4);
    //"rolo" de papel amarelo
    gllibCylinder(0.5,0.5,10);



}

